<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<?php echo $_BASE_DIR?>css_v1/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $_BASE_DIR?>css_v1/select.css" rel="stylesheet" type="text/css" />
    <!-- tips -->
    <link type="text/css" href="<?php echo $_BASE_DIR?>jqmobile/jquery.ui.tooltip.css" rel="stylesheet">
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>jqmobile/jquery-1.8.3.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>jqmobile/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>jqmobile/jquery.ui.position.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>jqmobile/jquery.ui.tooltip.js"></script>
    <!--<script type="text/javascript" src="<?php /*echo $_BASE_DIR*/?>js_v1/jquery.js"></script>-->
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.idTabs.min.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/select-ui.min.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>javascripts/commond.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>baidu_editor/ueditor.config.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.datetimepicker.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.DatePicker.js"></script>
<!-- 编辑器源码文件 -->
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>baidu_editor/ueditor.all.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="<?php echo $_BASE_DIR?>baidu_editor/lang/zh-cn/zh-cn.js"></script>
<link href="<?php echo $_BASE_DIR?>uploadify/css/uploadify.css" rel="stylesheet" type="text/css" />

<style type="text/css">
  #header {
    height: 85px
  }

  #leftside,#container,#splitBar,#splitBarProxy {
    top: 90px
  }
  .forminfo li label {
      width: 150px;

  }
  .detail_box{
    position: relative;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    margin:20px auto 20px 0;
    width: 80%
  }
  .detail_box .detail_tab{
    border: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    margin:0px 0px -1px -1px;
  }
  .detail_tab .left{
    /*width: 160px;*/
    font-size: 16px;
    border-right: 1px solid #eee;
    width: 30%;
    padding: 10px 20px
  }
  .detail_tab .right{
    /*width: 320px;*/
    font-size: 16px;
    width: 70%;
    padding: 10px 20px
  }
  .goods_box{
    position: relative;
    /*width: 600px;*/
    margin: 20px auto;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
  }
  .goods_box .goods_tab{
    display: flex;
    padding: 20px 10px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    width: 79%
  }
  .goods_tab .left{
    width: 80px;
    font-size: 20px;
  }
  .goods_tab .left img{
    width: 80px;
    height: 80px;
  }
  .goods_tab .right{
    width: 60%;
    margin-left: 20px
  }
  .goods_tab .right p{
    font-size: 16px;
    margin-bottom: 10px
  }
  .goods_tab .right p:last-child{
    margin-bottom: 0
  }
  .forminfo{
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    border-top: 1px solid #eee;
      width: 80%;
      margin-top: 20px;
      padding-left: unset
  }
  .forminfo li{
    margin-bottom: unset;
    border-bottom: 1px solid #eee;
    padding: 10px
  }
</style>
<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
    width : 345       
  });
  $(".select2").uedSelect({
    width : 167  
  });
  $(".select3").uedSelect({
    width : 110
  });

    //启动tip功能
    $( document ).tooltip({
        position: { my: "left+15 center", at: "right center" }
    });
});
</script>
<script src="<?php echo $_BASE_DIR?>javascripts/jquery.ocupload.min.js"
  type="text/javascript"></script>


<script type="text/javascript">
function ajaxpost(form)
{
  var data = $(form).serialize();
  $.post(form.action, data,function(result){
    result =  eval("("+result+")");
    alert(result.message);
    if( result.forwardUrl !== 'null' && result.forwardUrl !== null )
    {
      window.location.href = result.forwardUrl;
    }
    });
  return false;
}
</script>

</head>

<body>

  <div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="<?php echo url("leftmenu/bottom")?>">首页</a></li>
    <li><a href="/">做题详情</a></li>
    </ul>
    </div>
    <div class="formbody">
    <div id="usual1" class="usual">
    <div id="tab1" class="tabson">
    <?php foreach ($item as $k=>$v):?>
        <?php if ($v->question->type==1):?>
            <b>选择题</b>

            <div class="detail_box">
                <div class="detail_tab">
                    <div class="left">
                        题目
                    </div>
                    <div class="right">
                        <?php echo $v->question->title?>
                    </div>
                </div>

                <div class="detail_tab">
                    <div class="left">
                        选项A
                    </div>
                    <div class="right">
                        <?php echo $v->question->optiona?>
                    </div>
                </div>
                <div class="detail_tab">
                    <div class="left">
                        选项B
                    </div>
                    <div class="right">
                        <?php echo $v->question->optionb?>
                    </div>
                </div>

                <div class="detail_tab">
                    <div class="left">
                        选项C
                    </div>
                    <div class="right">
                        <?php echo $v->question->optionc?>
                    </div>
                </div>
                <div class="detail_tab">
                    <div class="left">
                        选项D
                    </div>
                    <div class="right">
                        <?php echo $v->question->optiond?>
                    </div>
                </div>
                <div class="detail_tab">
                    <div class="left">
                        选项E
                    </div>
                    <div class="right">
                        <?php echo $v->question->optione?>
                    </div>
                </div>


                <div class="detail_tab">
                    <div class="left">
                        答案
                    </div>
                    <div class="right">
                        <?php echo $v->question->answer?>
                    </div>
                </div>

                <div class="detail_tab">
                    <div class="left">
                        用户答案
                    </div>
                    <div class="right">
                        <?php echo $v->answer?>
                    </div>
                </div>




            </div>
        <?php elseif ($v->question->type==2):?>
            <b>简答题</b>

            <div class="detail_box">
                <div class="detail_tab">
                    <div class="left">
                        题目
                    </div>
                    <div class="right">
                        <?php echo $v->question->title?>
                    </div>
                </div>

                <div class="detail_tab">
                    <div class="left">
                        答案
                    </div>
                    <div class="right">
                        <?php echo $v->question->answer?>
                    </div>
                </div>

                <div class="detail_tab">
                    <div class="left">
                        用户答案
                    </div>
                    <div class="right">
                        <?php echo $v->answer?>
                    </div>
                </div>




            </div>

        <?php endif;?>

    <?php endforeach;?>





</div></div></div></body>
    
    </html>
    
    
